package cn.achao.csr.system.dao;

import cn.achao.csr.api.model.entity.SysUserExpand;
import cn.achao.csr.system.mapper.SysUserExpandMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Author: achao
 **/
@Slf4j
@Service
@RequiredArgsConstructor
public class SysUserExpandDao extends ServiceImpl<SysUserExpandMapper, SysUserExpand> {

    private final SysUserExpandMapper userExpandMapper;

    public Boolean isExistZfbOpenId(String openId) {
        return userExpandMapper.isExistZfbOpenId(openId) > 0;

    }

    public Boolean isExistWxOpenId(String openId) {
        return userExpandMapper.isExistWxOpenId(openId) > 0;
    }
}
